package br.com.esporte.apresentacao.infra.componente.modal;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.WebPage;

import br.com.esporte.negocios.entidade.imp.Jogador;

/**
 * 
 * @author Milton Domingues
 *
 */
public class ModalDialog extends WebPage {

	private static final long serialVersionUID = -1289935796157113822L;

	public ModalDialog(final Jogador jogador, final ModalWindow window)
	{
		this.add(new AjaxLink("closeOK")
		{
			@Override
			public void onClick(AjaxRequestTarget target)
			{
				window.close(target);
			}
		});

		this.add(new AjaxLink("closeCancel")
		{
			@Override
			public void onClick(AjaxRequestTarget target)
			{
				window.close(target);
			}
		});

	}

}
